﻿using System.Collections.Generic;
using ES.Client;

namespace Elasticsearch.Synchronize.Client
{
    [DocMapping("hexindb", "SynchronizeConfig")]
    public class SynchronizeConfig
    {
        public string ItemId { get; set; }

        public string RuleId { get; set; }

        public string MongoSeverUrl { get; set; }

        public string MongoDatabase { get; set; }

        public string MongoCollection { get; set; }

        public string JsonFilter { get; set; }

        public string ElasticsearchServerUrl { get; set; }

        public string ElasticsearchIndexName { get; set; }

        public string ElasticsearchTypeName { get; set; }

        public int Threshold { get; set; }

        public int State { get; set; }

        public bool Enabled { get; set; }
    }

    public enum DataProvider
    {
        MongoDB = 0,
        ElasticSearch = 1
    }
}